package com.ywb.order.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @Author ywb
 */
public class OrderController {
    public static final String PAYMENT_API = "http:payment-com.ywb.payment.service:8004";

    @Resource
    private RestTemplate restTemplate;

    @GetMapping("/payment/zk")
    public String paymentZk(){
        return restTemplate.getForObject(PAYMENT_API + "/zk", String.class);
    }
}
